package com.dragon.logical.service.contract;

import com.dragon.repository.entity.ContractArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.validation.annotation.Validated;

import java.util.List;

/**
 * <p>
 * 条款 服务类
 * </p>
 *
 * @author sy
 * @since 2023-07-21
 */
public interface IContractArticleService extends IService<ContractArticle> {

    List<ContractArticle> articleList();

    void addArticle(ContractArticle article);

    void updateArticle(ContractArticle article);

    void deleteArticle(Integer id);

    ContractArticle viewOneDetail(Integer articleId);

    /**
     * 设置默认条款
     * @param id
     */
    void setUpDefault(Integer id);

    /**
     * 获取默认条款
     * @return
     */
    ContractArticle getDefaultArticle();
}
